<%--
  Created by IntelliJ IDEA.
  User: sith
  Date: Feb 13, 2010
  Time: 2:49:09 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core' %>
<html>
<head><title>TaskManager - Login page</title>

    <link href="css/TaskManager.css" rev="stylesheet" rel="stylesheet" type="text/css">
</head>

<body>

<h3 align="center">Task Manager</h3>
<c:if test="${SPRING_SECURITY_LAST_EXCEPTION!=null}">
    <div class="reborder" style="margin:auto;width:50%">

        <font color="red">
            Login failed!<br>
            Reason: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}"/>.
            <a href="addUser.jsp">Add user</a>
        </font>

    </div>
</c:if>
<br>

<div align="center" class="border" style="margin:auto;width:50%">


    <form name="f" action="<c:url value='j_spring_security_check'/>" method="POST">
        <table>
            <tr>
                <td>User:</td>
                <td><input type='text' name='j_username'
                           value='<c:if test="${not empty param.login_error}"><c:out value="${SPRING_SECURITY_LAST_USERNAME}"/></c:if>'/>
                </td>
            </tr>

            <tr>
                <td colspan='2'><input name="submit" value="Login" type="submit"></td>
            </tr>
           
        </table>

    </form>
</div>
</body>
</html>